package design.strategy;

/**
 * 隐藏具体策略
 *
 * @author wei.yang on 2018/8/31
 */
class Context {

    private Strategy strategy;

    Context(Strategy strategy) {
        this.strategy = strategy;
    }

    void execute(Object msg) {
        strategy.strategy(msg);
    }
}
